﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using frag_boardgame;
namespace Website.BoardWebControl
{
    public partial class Testeer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BoardUI1.Rows = 5;
            BoardUI1.Cols = 6;
            frag_boardgame.Board board = new frag_boardgame.Board(5, 6);
        
            frag_boardgame.PlayerConfiguration pconf = new PlayerConfiguration(2, 2, "1") ;
            frag_boardgame.Player pl = new Player(pconf, 1) ;

            frag_boardgame.PlayerConfiguration pconf2 = new PlayerConfiguration(3, 3, "2");
            frag_boardgame.Player pl2 = new Player(pconf2, 1);

            board.GetSquare(1, 1).AddWall(SquareWalls.Down);
            board.GetSquare(1, 2).AddWall(SquareWalls.Up);
            board.GetSquare(1, 3).AddWall(SquareWalls.Left);
            board.GetSquare(1, 4).AddWall(SquareWalls.Right);
            
            board.GetSquare(2, 1).AddWall(SquareWalls.Down);
            board.GetSquare(2, 2).AddWall(SquareWalls.Up);
            board.GetSquare(2, 3).AddWall(SquareWalls.Left);
            board.GetSquare(2, 4).AddWall(SquareWalls.Right);
            
            
            board.GetSquare(2, 2).player = pl;
            board.GetSquare(3, 3).player = pl2;

            //BoardUI1.DrawBoard = board;
            
        }
    }
}
